import request from "@/utils/request";

export default {
    login(data) {
        return request({
            url: "/app-api/loginPhone",
            method: "post",
            header: { "Content-Type": "application/json" },
            data: data,
        });
    },
    loginWxPhone(data) {
        return request({
            url: "/app-api/loginWxPhone",
            method: "post",
            header: { "Content-Type": "application/json" },
            data: data,
        });
    },
    getUserInfo() {
        return request({
            url: "/app-api/getUserInfo",
            method: "get",
        });
    },
};
